<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions'%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="ISO-8859-1"%>
<jsp:include page="before.jsp"></jsp:include>

<c:choose>
	<c:when test="${currentEvent != null}">

		<p>Dagens begivenhet:</p>
		<p>
			<a href="/event/view/${currentEvent.id}">${currentEvent.niceDate}</a>
		</p>
	</c:when>
</c:choose>

<p>Tidligere begivenheter:</p>
<c:forEach items="${pastEvents}" var="event">
	<p>
		<a href="/event/view/${event.id}">${event.niceDate}</a>
	</p>
</c:forEach>
</div>
</body>
</html>